package com.ehome.poct.core.service.rpc;

import com.ehome.poct.base.api.dto.account.TermAgentOrgDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @auther: kuiba.peng
 * @date: 2022/11/18 11:26
 * @description:
 */
@FeignClient(value = "${service.poct-base:}${service.suffix.poct-base:}", path = "/termAgentOrg",contextId = "TermAgentOrgClient")
public interface TermAgentOrgClient {

    /**
     * 根据获取合伙人信息
     *
     * @param agentId
     * @return
     */
    @GetMapping("/getByAgentId/{agentId}")
    TermAgentOrgDTO getByAgentId(@PathVariable Long agentId);
}
